<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> -->
    <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="../../../../../public/vendor/bootstrap/bootstrap.css">
    <link rel="stylesheet" href="../../../../../public/themes/base/css/site.css">
    <!-- <script src="../../../../../../public/vendor/flexible/flexible.js"></script> -->
    <title>屠宰日报</title>
    <link rel="stylesheet" type="text/css" href="../../../../../public/css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../../../../public/vendor/weui/jquery-weui.min.css">
    <link rel="stylesheet" type="text/css" href="../../../../../public/vendor/weui/weui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../../public/vendor/swiper/swiper.css">
    <link rel="stylesheet" type="text/css" href="../../../../../public/css/pigslaughter/main.css" />
    <link rel="stylesheet" type="text/css" href="../../../../../public/vendor/web-icons/web-icons.css">
    <!-- swiper -->
    <link rel="stylesheet" href="../../../../../public/vendor/swiper/swiper.css">
    <link rel="stylesheet" href="../../../../../public/vendor/weui/weui.min.css">
    <link rel="stylesheet" href="../../../../../public/vendor/weui/jquery-weui.min.css">
    <!-- Page CSS -->
    <link rel="stylesheet" type="text/css" href="../../../../../public/css/features/bi/food/pigsltrdailyinfo.css">
    <script type="text/x-template" id="dailyList_template">
        {{? Utils.IsNotNull(it)}}
        <div class="row">
            <div class="col-12">
                <div class=" card-block p-10 bg-blue-600" style="border-radius:0.7rem 0.7rem 0 0;">
                    <div class="counter counter-md counter-inverse text-center">
                        <span class="counter-number-related text-capitalize"
                            style="margin-top: 10px;">{{=it.oName}}</span>
                        <div style="display:flex;justify-content: space-between;padding:10px" style="text-align: center;"><span>屠宰日报</span>{{=it.bizDate }}</div>
                    </div>
                </div>
                <div class="card card-block p-10" style="border-radius: 0 0 0.7rem 0.7rem;">
                    <div class="daily-deatil">
                            <div class="daily-detail-item">
                                总屠宰头数
                                <div>
                                    <span>{{=Utils.IsNotNull(it.sumSltrQty)?it.sumSltrQty:"--"}}</span>头
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                总均重
                                <div>
                                    <span>{{=Utils.IsNotNull(it.sumAvgWeight)?Utils.toThousands(it.sumAvgWeight):"--"}}</span>kg 
                                </div>
                            </div> 
                            <div class="daily-detail-item">
                                总平均单价
                                <div>
                                    <span>{{=Utils.IsNotNull(it.sumAvgPrice)?Utils.toThousands(it.sumAvgPrice):"--"}}</span>元/kg
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营屠宰量
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfSltrQty)?it.selfSltrQty:"--"}}</span>头 
                                </div>
                            </div> 
                            <div class="daily-detail-item">
                                自营白条均重
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfAvgWeight)?Utils.toThousands(it.selfAvgWeight):"--"}}</span>kg 
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营平均单价
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfAvgPrice)?Utils.toThousands(it.selfAvgPrice):"--"}}</span>元/kg 
                                </div>
                            </div>
							<div class="daily-detail-item">
                                代结算屠宰数
                                <div>
                                    <span>{{=Utils.IsNotNull(it.agentSltrQty)?it.agentSltrQty:"--"}}</span>头 
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                代结算白条均重
                                <div>
                                    <span>{{=Utils.IsNotNull(it.agentAvgWeight)?Utils.toThousands(it.agentAvgWeight):"--"}}</span>kg 	
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                代结算平均单价
                                <div>
                                    <span>{{=Utils.IsNotNull(it.agentAvgPrice)?Utils.toThousands(it.agentAvgPrice):"--"}}</span>元/kg 
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                代屠宰数量
                                <div>
                                    <span>{{=Utils.IsNotNull(it.outSltrQty)?it.outSltrQty:"--"}}</span>头 
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                代屠宰均重
                                <div>
                                    <span>{{=Utils.IsNotNull(it.outAvgWeight)?Utils.toThousands(it.outAvgWeight):"--"}}</span>kg 	
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                冷鲜白条屠宰数
                                <div>
                                    <span>{{=Utils.IsNotNull(it.coldSltrQty)?Utils.toThousands(it.coldSltrQty):"--"}}</span>头
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营急宰数
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfUrgtSltrQty)?Utils.toThousands(it.selfUrgtSltrQty):"--"}}</span>头
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营急宰白条均重
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfUrgtSltrAvgWeight)?it.selfUrgtSltrAvgWeight:"--"}}</span>kg
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营急宰平均单价
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfUrgtSltrAvgPrice)?Utils.toThousands(it.selfUrgtSltrAvgPrice):"--"}}</span>元/kg 	
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                自营毛猪价
                                <div>
                                    <span>{{=Utils.IsNotNull(it.selfCost)?it.selfCost:"--"}}</span>元/kg 
                                </div>
                            </div>
                            <div class="daily-detail-item">
                                食品站屠宰量
                                <div>
                                    <span>{{=Utils.IsNotNull(it.stationTotalNum)?it.stationTotalNum:"--"}}</span>头 
                                </div>
                            </div>
                            {{? Utils.IsNotNull(it.details)}}
                            <div class="" style = "width:100%">
                                <span>屠宰量明细：</span>
                            </div>
                            {{~ it.details :item:__index}}
                                <div class="daily-detail-item">
                                    {{=Utils.IsNotNull(item.sourceName)?item.sourceName:"--"}}
                                    <div>
                                        <span>{{=Utils.IsNotNull(item.qty)?item.qty:"--"}}</span>头 
                                    </div>
                                </div>
                            {{~}}
                            {{?}}
                    </div>
                </div>    
            </div>
        </div>
        {{?}}
    </script>

    <script type="text/x-template" id="annualInfo_template">
        <div class="counter counter-md counter-inverse text-center">
            <div class="counter-number-related text-capitalize" style="height:1.5rem">年度屠宰量信息</div>
            <div style="font-size: 20px;text-align: center;">{{=it.year}}</div>
        </div>
        <div class="col-12" style="padding: 0.625rem;">
            <div class="card card-block p-10 col-12 total-year" style="margin-top: 10px;">
                <div class="total-year-item col-4">总量<span>{{=Utils.IsNotNull(it.curYQty)?Utils.toThousands(it.curYQty,0):"--"}}<span class="unit">头</span></span></div>
                <div class="total-year-item col-4">自营<span>{{=Utils.IsNotNull(it.curYSelfQty)?Utils.toThousands(it.curYSelfQty,0):"--"}}<span class="unit">头</span></span></div>
                <div class="total-year-item col-4">代宰<span>{{=Utils.IsNotNull(it.curYAgentQty)?Utils.toThousands(it.curYAgentQty,0):"--"}}<span class="unit">头</span></span></div>
            </div>
        </div>
    </script>

</head>
<style>
    body {
        width: 100%;
        background: #f1f4f5;
        padding: 0px 10px;
    }

    * {
        margin: 0;
        padding: 0;
    }

    #dailyList {
        margin: 0 0.3125rem 10px 0.3125rem;
    }

    .counter-label {
        font-size: 14px !important;
    }

    .counter-number {
        font-size: 26px !important;
    }

    .card {
        margin-bottom: 10px;
    }

    #divPage {
        width: 100%;
        overflow: hidden;
    }
</style>

<body>
    <div id="divPage">
        <div class="row">
            <div class="col-12">
                <div class="bg-blue-600 total-year-head" style="margin-bottom:75px;height: 110px;" id="annualInfo">

                </div>
            </div>
        </div>
        <div class="swiper-container"
            style="height:300px; margin:0 0.3125rem 10px 0.3125rem; background: #FFF; border-radius:0.7rem;"
            data-space-between='10' data-pagination='.swiper-pagination' data-autoplay="1000">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <div id="pie" style="height: 300px;">
                        <div id="lineAvg" style="height: 300px; width:100%;"></div>
                    </div>
                </div>
                <div class="swiper-slide">
                    <div id="line" style="height: 300px;">
                        <div id="pieTotalNumber" style="height: 300px; width: 100%;"></div>
                    </div>
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <!-- template -->
        <div id="dailyList"></div>
        <!-- <div class="page__hd">
            <p class="spanage__desc" v-cloak>已查阅 : ({{readingUser.length}}人)</p>
            <span class="badge badge-round badge-info" v-for="(item,index) in readingUser" v-cloak>{{item}}</span>

        </div> -->
    </div>
    <div class="weui-footer">
        <!-- <p class="weui-footer__text">20210520 v1.0 Beta</p> -->
        <p class="weui-footer__links" style="margin-bottom: 0.2rem;">
            <a href="javascript:" class="weui-footer__link">云南神农集团</a>
            <a href="javascript:" class="weui-footer__link" id="initInfo">卓越运营中心制</a>
        </p>
        <p class="weui-footer__text">Copyright &copy; <span id="application-date">2019-2023</span>&nbsp;&nbsp;<span
                id="application-environment">ynsnjt.cn</span></p>
    </div>
    <script type="text/javascript" src="../../../../../public/vendor/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../../../../public/vendor/bootstrap/bootstrap.bundle.min.js"></script>
    <script type="text/javascript" src="../../../../../public/js/config/utils.js"></script>
    <script src="../../../../../public/vendor/newEcarts/ecarts.js"></script>
    <script src="../../../../../public/vendor/moment/moment.min.js"></script>


    <!-- mine页面使用 -->
    <script type="text/javascript" src="../../../../../public/vendor/vue/vue.min.js"></script>
    <script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script src="../../../../../public/vendor/swiper/swiper.js"></script>
    <script src="../../../../../public/vendor/weui/jquery-weui.js"></script>
    <script type="module" src="../../../../../public/js/features/bizreport/bi/food/pigsltrdailyinfo.js"></script>
    <script>
        $(function () {
            $('#application-date').text(`2019-${new Date().getFullYear()}`);
            $('#application-environment').text('ynsnjt.cn');
            // $(`#qcode__customer`).empty().qrcode({
            // 	correctLevel: 1,
            // 	width: 200,
            // 	height: 200,
            // 	background: "#fff",
            // 	fill: "#000",
            // 	text: 'https://debugmm.qq.com/?forcex5=true'
            // });
            // let canvas = $(`#qcode__customer canvas`);
            // let img = canvas[0].toDataURL("image/png");
            // $('#qcode__customer_img').append(`<img src='${img}'>`)
        })
    </script>
</body>

</html>